\(\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x)) (A+B \tan (e+f x)+C \tan ^2(e+f x)) \, dx\) [50]
Optimal result
Integrand size = 43, antiderivative size = 353 \[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x)) \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right ) \, dx=\left (a^3 (A c-c C-B d)-3 a b^2 (A c-c C-B d)-3 a^2 b (B c+(A-C) d)+b^3 (B c+(A-C) d)\right ) x-\frac {\left (3 a^2 b (A c-c C-B d)-b^3 (A c-c C-B d)+a^3 (B c+(A-C) d)-3 a b^2 (B c+(A-C) d)\right ) \log (\cos (e+f x))}{f}+\frac {b \left (2 a b (A c-c C-B d)+a^2 (B c+(A-C) d)-b^2 (B c+(A-C) d)\right ) \tan (e+f x)}{f}+\frac {(A b c+a B c-b c C+a A d-b B d-a C d) (a+b \tan (e+f x))^2}{2 f}+\frac {(B c+(A-C) d) (a+b \tan (e+f x))^3}{3 f}-\frac {(a C d-5 b (c C+B d)) (a+b \tan (e+f x))^4}{20 b^2 f}+\frac {C d \tan (e+f x) (a+b \tan (e+f x))^4}{5 b f}
\]
[Out]
(a^3*(A*c-B*d-C*c)-3*a*b^2*(A*c-B*d-C*c)-3*a^2*b*(B*c+(A-C)*d)+b^3*(B*c+(A-C)*d))*x-(3*a^2*b*(A*c-B*d-C*c)-b^3
*(A*c-B*d-C*c)+a^3*(B*c+(A-C)*d)-3*a*b^2*(B*c+(A-C)*d))*ln(cos(f*x+e))/f+b*(2*a*b*(A*c-B*d-C*c)+a^2*(B*c+(A-C)
*d)-b^2*(B*c+(A-C)*d))*tan(f*x+e)/f+1/2*(A*a*d+A*b*c+B*a*c-B*b*d-C*a*d-C*b*c)*(a+b*tan(f*x+e))^2/f+1/3*(B*c+(A
-C)*d)*(a+b*tan(f*x+e))^3/f-1/20*(C*a*d-5*b*(B*d+C*c))*(a+b*tan(f*x+e))^4/b^2/f+1/5*C*d*tan(f*x+e)*(a+b*tan(f*
x+e))^4/b/f
Rubi [A] (verified)
Time = 0.92 (sec) , antiderivative size = 353, normalized size of antiderivative = 1.00, number of
steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.116, Rules used = {3718, 3711, 3609, 3606, 3556}
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x)) \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right ) \, dx=\frac {b \tan (e+f x) \left (a^2 (d (A-C)+B c)+2 a b (A c-B d-c C)-b^2 (d (A-C)+B c)\right )}{f}-\frac {\log (\cos (e+f x)) \left (a^3 (d (A-C)+B c)+3 a^2 b (A c-B d-c C)-3 a b^2 (d (A-C)+B c)-b^3 (A c-B d-c C)\right )}{f}+x \left (a^3 (A c-B d-c C)-3 a^2 b (d (A-C)+B c)-3 a b^2 (A c-B d-c C)+b^3 (d (A-C)+B c)\right )+\frac {(d (A-C)+B c) (a+b \tan (e+f x))^3}{3 f}+\frac {(a+b \tan (e+f x))^2 (a A d+a B c-a C d+A b c-b B d-b c C)}{2 f}-\frac {(a C d-5 b (B d+c C)) (a+b \tan (e+f x))^4}{20 b^2 f}+\frac {C d \tan (e+f x) (a+b \tan (e+f x))^4}{5 b f}
\]
[In]
Int[(a + b*Tan[e + f*x])^3*(c + d*Tan[e + f*x])*(A + B*Tan[e + f*x] + C*Tan[e + f*x]^2),x]
[Out]
(a^3*(A*c - c*C - B*d) - 3*a*b^2*(A*c - c*C - B*d) - 3*a^2*b*(B*c + (A - C)*d) + b^3*(B*c + (A - C)*d))*x - ((
3*a^2*b*(A*c - c*C - B*d) - b^3*(A*c - c*C - B*d) + a^3*(B*c + (A - C)*d) - 3*a*b^2*(B*c + (A - C)*d))*Log[Cos
[e + f*x]])/f + (b*(2*a*b*(A*c - c*C - B*d) + a^2*(B*c + (A - C)*d) - b^2*(B*c + (A - C)*d))*Tan[e + f*x])/f +
((A*b*c + a*B*c - b*c*C + a*A*d - b*B*d - a*C*d)*(a + b*Tan[e + f*x])^2)/(2*f) + ((B*c + (A - C)*d)*(a + b*Ta
n[e + f*x])^3)/(3*f) - ((a*C*d - 5*b*(c*C + B*d))*(a + b*Tan[e + f*x])^4)/(20*b^2*f) + (C*d*Tan[e + f*x]*(a +
b*Tan[e + f*x])^4)/(5*b*f)
Rule 3556
Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]
Rule 3606
Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(a*c - b
*d)*x, x] + (Dist[b*c + a*d, Int[Tan[e + f*x], x], x] + Simp[b*d*(Tan[e + f*x]/f), x]) /; FreeQ[{a, b, c, d, e
, f}, x] && NeQ[b*c - a*d, 0] && NeQ[b*c + a*d, 0]
Rule 3609
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[d*
((a + b*Tan[e + f*x])^m/(f*m)), x] + Int[(a + b*Tan[e + f*x])^(m - 1)*Simp[a*c - b*d + (b*c + a*d)*Tan[e + f*x
], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && GtQ[m, 0]
Rule 3711
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)] + (C_.)*tan[(e_.) + (
f_.)*(x_)]^2), x_Symbol] :> Simp[C*((a + b*Tan[e + f*x])^(m + 1)/(b*f*(m + 1))), x] + Int[(a + b*Tan[e + f*x])
^m*Simp[A - C + B*Tan[e + f*x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] && NeQ[A*b^2 - a*b*B + a^2*C, 0]
&& !LeQ[m, -1]
Rule 3718
Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (B_.)*tan[(e
_.) + (f_.)*(x_)] + (C_.)*tan[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[b*C*Tan[e + f*x]*((c + d*Tan[e + f*x])
^(n + 1)/(d*f*(n + 2))), x] - Dist[1/(d*(n + 2)), Int[(c + d*Tan[e + f*x])^n*Simp[b*c*C - a*A*d*(n + 2) - (A*b
+ a*B - b*C)*d*(n + 2)*Tan[e + f*x] - (a*C*d*(n + 2) - b*(c*C - B*d*(n + 2)))*Tan[e + f*x]^2, x], x], x] /; F
reeQ[{a, b, c, d, e, f, A, B, C, n}, x] && NeQ[b*c - a*d, 0] && NeQ[c^2 + d^2, 0] && !LtQ[n, -1]
Rubi steps \begin{align*}
\text {integral}& = \frac {C d \tan (e+f x) (a+b \tan (e+f x))^4}{5 b f}-\frac {\int (a+b \tan (e+f x))^3 \left (-5 A b c+a C d-5 b (B c+(A-C) d) \tan (e+f x)+(a C d-5 b (c C+B d)) \tan ^2(e+f x)\right ) \, dx}{5 b} \\ & = -\frac {(a C d-5 b (c C+B d)) (a+b \tan (e+f x))^4}{20 b^2 f}+\frac {C d \tan (e+f x) (a+b \tan (e+f x))^4}{5 b f}-\frac {\int (a+b \tan (e+f x))^3 (-5 b (A c-c C-B d)-5 b (B c+(A-C) d) \tan (e+f x)) \, dx}{5 b} \\ & = \frac {(B c+(A-C) d) (a+b \tan (e+f x))^3}{3 f}-\frac {(a C d-5 b (c C+B d)) (a+b \tan (e+f x))^4}{20 b^2 f}+\frac {C d \tan (e+f x) (a+b \tan (e+f x))^4}{5 b f}-\frac {\int (a+b \tan (e+f x))^2 (5 b (b B c+b (A-C) d-a (A c-c C-B d))-5 b (A b c+a B c-b c C+a A d-b B d-a C d) \tan (e+f x)) \, dx}{5 b} \\ & = \frac {(A b c+a B c-b c C+a A d-b B d-a C d) (a+b \tan (e+f x))^2}{2 f}+\frac {(B c+(A-C) d) (a+b \tan (e+f x))^3}{3 f}-\frac {(a C d-5 b (c C+B d)) (a+b \tan (e+f x))^4}{20 b^2 f}+\frac {C d \tan (e+f x) (a+b \tan (e+f x))^4}{5 b f}-\frac {\int (a+b \tan (e+f x)) \left (-5 b \left (a^2 (A c-c C-B d)-b^2 (A c-c C-B d)-2 a b (B c+(A-C) d)\right )-5 b \left (2 a b (A c-c C-B d)+a^2 (B c+(A-C) d)-b^2 (B c+(A-C) d)\right ) \tan (e+f x)\right ) \, dx}{5 b} \\ & = \left (a^3 (A c-c C-B d)-3 a b^2 (A c-c C-B d)-3 a^2 b (B c+(A-C) d)+b^3 (B c+(A-C) d)\right ) x+\frac {b \left (2 a b (A c-c C-B d)+a^2 (B c+(A-C) d)-b^2 (B c+(A-C) d)\right ) \tan (e+f x)}{f}+\frac {(A b c+a B c-b c C+a A d-b B d-a C d) (a+b \tan (e+f x))^2}{2 f}+\frac {(B c+(A-C) d) (a+b \tan (e+f x))^3}{3 f}-\frac {(a C d-5 b (c C+B d)) (a+b \tan (e+f x))^4}{20 b^2 f}+\frac {C d \tan (e+f x) (a+b \tan (e+f x))^4}{5 b f}-\left (-3 a^2 b (A c-c C-B d)+b^3 (A c-c C-B d)-a^3 (B c+(A-C) d)+3 a b^2 (B c+(A-C) d)\right ) \int \tan (e+f x) \, dx \\ & = \left (a^3 (A c-c C-B d)-3 a b^2 (A c-c C-B d)-3 a^2 b (B c+(A-C) d)+b^3 (B c+(A-C) d)\right ) x-\frac {\left (3 a^2 b (A c-c C-B d)-b^3 (A c-c C-B d)+a^3 (B c+(A-C) d)-3 a b^2 (B c+(A-C) d)\right ) \log (\cos (e+f x))}{f}+\frac {b \left (2 a b (A c-c C-B d)+a^2 (B c+(A-C) d)-b^2 (B c+(A-C) d)\right ) \tan (e+f x)}{f}+\frac {(A b c+a B c-b c C+a A d-b B d-a C d) (a+b \tan (e+f x))^2}{2 f}+\frac {(B c+(A-C) d) (a+b \tan (e+f x))^3}{3 f}-\frac {(a C d-5 b (c C+B d)) (a+b \tan (e+f x))^4}{20 b^2 f}+\frac {C d \tan (e+f x) (a+b \tan (e+f x))^4}{5 b f} \\
\end{align*}
Mathematica [C] (verified)
Result contains complex when optimal does not.
Time = 6.42 (sec) , antiderivative size = 300, normalized size of antiderivative = 0.85
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x)) \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right ) \, dx=\frac {C d \tan (e+f x) (a+b \tan (e+f x))^4}{5 b f}-\frac {\frac {(a C d-5 b (c C+B d)) (a+b \tan (e+f x))^4}{4 b f}-\frac {5 \left (3 (A b c-a B c-b c C-a A d-b B d+a C d) \left ((i a-b)^3 \log (i-\tan (e+f x))-(i a+b)^3 \log (i+\tan (e+f x))+6 a b^2 \tan (e+f x)+b^3 \tan ^2(e+f x)\right )-(B c+(A-C) d) \left (3 i (a+i b)^4 \log (i-\tan (e+f x))-3 i (a-i b)^4 \log (i+\tan (e+f x))-6 b^2 \left (6 a^2-b^2\right ) \tan (e+f x)-12 a b^3 \tan ^2(e+f x)-2 b^4 \tan ^3(e+f x)\right )\right )}{6 f}}{5 b}
\]
[In]
Integrate[(a + b*Tan[e + f*x])^3*(c + d*Tan[e + f*x])*(A + B*Tan[e + f*x] + C*Tan[e + f*x]^2),x]
[Out]
(C*d*Tan[e + f*x]*(a + b*Tan[e + f*x])^4)/(5*b*f) - (((a*C*d - 5*b*(c*C + B*d))*(a + b*Tan[e + f*x])^4)/(4*b*f
) - (5*(3*(A*b*c - a*B*c - b*c*C - a*A*d - b*B*d + a*C*d)*((I*a - b)^3*Log[I - Tan[e + f*x]] - (I*a + b)^3*Log
[I + Tan[e + f*x]] + 6*a*b^2*Tan[e + f*x] + b^3*Tan[e + f*x]^2) - (B*c + (A - C)*d)*((3*I)*(a + I*b)^4*Log[I -
Tan[e + f*x]] - (3*I)*(a - I*b)^4*Log[I + Tan[e + f*x]] - 6*b^2*(6*a^2 - b^2)*Tan[e + f*x] - 12*a*b^3*Tan[e +
f*x]^2 - 2*b^4*Tan[e + f*x]^3)))/(6*f))/(5*b)
Maple [A] (verified)
Time = 0.30 (sec) , antiderivative size = 347, normalized size of antiderivative = 0.98
| | |
method | result | size |
| | |
parts |
\(\frac {\left (A \,a^{3} d +3 A \,a^{2} b c +B \,a^{3} c \right ) \ln \left (1+\tan \left (f x +e \right )^{2}\right )}{2 f}+\frac {\left (B \,b^{3} d +3 C a \,b^{2} d +C \,b^{3} c \right ) \left (\frac {\tan \left (f x +e \right )^{4}}{4}-\frac {\tan \left (f x +e \right )^{2}}{2}+\frac {\ln \left (1+\tan \left (f x +e \right )^{2}\right )}{2}\right )}{f}+\frac {\left (A \,b^{3} d +3 B a \,b^{2} d +B \,b^{3} c +3 C \,a^{2} b d +3 C a \,b^{2} c \right ) \left (\frac {\tan \left (f x +e \right )^{3}}{3}-\tan \left (f x +e \right )+\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}+\frac {\left (3 A \,a^{2} b d +3 A a \,b^{2} c +B \,a^{3} d +3 B \,a^{2} b c +C \,a^{3} c \right ) \left (\tan \left (f x +e \right )-\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}+\frac {\left (3 A a \,b^{2} d +A \,b^{3} c +3 B \,a^{2} b d +3 B a \,b^{2} c +a^{3} C d +3 C \,a^{2} b c \right ) \left (\frac {\tan \left (f x +e \right )^{2}}{2}-\frac {\ln \left (1+\tan \left (f x +e \right )^{2}\right )}{2}\right )}{f}+A \,a^{3} c x +\frac {C \,b^{3} d \left (\frac {\tan \left (f x +e \right )^{5}}{5}-\frac {\tan \left (f x +e \right )^{3}}{3}+\tan \left (f x +e \right )-\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}\) |
\(347\) |
norman |
\(\left (A \,a^{3} c -3 A \,a^{2} b d -3 A a \,b^{2} c +A \,b^{3} d -B \,a^{3} d -3 B \,a^{2} b c +3 B a \,b^{2} d +B \,b^{3} c -C \,a^{3} c +3 C \,a^{2} b d +3 C a \,b^{2} c -C \,b^{3} d \right ) x +\frac {\left (3 A \,a^{2} b d +3 A a \,b^{2} c -A \,b^{3} d +B \,a^{3} d +3 B \,a^{2} b c -3 B a \,b^{2} d -B \,b^{3} c +C \,a^{3} c -3 C \,a^{2} b d -3 C a \,b^{2} c +C \,b^{3} d \right ) \tan \left (f x +e \right )}{f}+\frac {\left (3 A a \,b^{2} d +A \,b^{3} c +3 B \,a^{2} b d +3 B a \,b^{2} c -B \,b^{3} d +a^{3} C d +3 C \,a^{2} b c -3 C a \,b^{2} d -C \,b^{3} c \right ) \tan \left (f x +e \right )^{2}}{2 f}+\frac {b \left (A \,b^{2} d +3 B a b d +B \,b^{2} c +3 C \,a^{2} d +3 C a b c -d C \,b^{2}\right ) \tan \left (f x +e \right )^{3}}{3 f}+\frac {b^{2} \left (b d B +3 C a d +C b c \right ) \tan \left (f x +e \right )^{4}}{4 f}+\frac {C \,b^{3} d \tan \left (f x +e \right )^{5}}{5 f}+\frac {\left (A \,a^{3} d +3 A \,a^{2} b c -3 A a \,b^{2} d -A \,b^{3} c +B \,a^{3} c -3 B \,a^{2} b d -3 B a \,b^{2} c +B \,b^{3} d -a^{3} C d -3 C \,a^{2} b c +3 C a \,b^{2} d +C \,b^{3} c \right ) \ln \left (1+\tan \left (f x +e \right )^{2}\right )}{2 f}\) |
\(467\) |
derivativedivides |
\(\frac {\frac {\left (A \,a^{3} d +3 A \,a^{2} b c -3 A a \,b^{2} d -A \,b^{3} c +B \,a^{3} c -3 B \,a^{2} b d -3 B a \,b^{2} c +B \,b^{3} d -a^{3} C d -3 C \,a^{2} b c +3 C a \,b^{2} d +C \,b^{3} c \right ) \ln \left (1+\tan \left (f x +e \right )^{2}\right )}{2}+\left (A \,a^{3} c -3 A \,a^{2} b d -3 A a \,b^{2} c +A \,b^{3} d -B \,a^{3} d -3 B \,a^{2} b c +3 B a \,b^{2} d +B \,b^{3} c -C \,a^{3} c +3 C \,a^{2} b d +3 C a \,b^{2} c -C \,b^{3} d \right ) \arctan \left (\tan \left (f x +e \right )\right )+\frac {C \,a^{3} d \tan \left (f x +e \right )^{2}}{2}-\frac {C \,b^{3} c \tan \left (f x +e \right )^{2}}{2}+\frac {B \,b^{3} c \tan \left (f x +e \right )^{3}}{3}-\frac {C \,b^{3} d \tan \left (f x +e \right )^{3}}{3}+\frac {B \,b^{3} d \tan \left (f x +e \right )^{4}}{4}+\frac {C \,b^{3} c \tan \left (f x +e \right )^{4}}{4}+\frac {A \,b^{3} d \tan \left (f x +e \right )^{3}}{3}+\frac {A \,b^{3} c \tan \left (f x +e \right )^{2}}{2}-\frac {B \,b^{3} d \tan \left (f x +e \right )^{2}}{2}+\tan \left (f x +e \right ) C \,b^{3} d -\tan \left (f x +e \right ) A \,b^{3} d +\tan \left (f x +e \right ) B \,a^{3} d -\tan \left (f x +e \right ) B \,b^{3} c +\tan \left (f x +e \right ) C \,a^{3} c +\frac {C \,b^{3} d \tan \left (f x +e \right )^{5}}{5}+3 \tan \left (f x +e \right ) A \,a^{2} b d -3 \tan \left (f x +e \right ) C a \,b^{2} c +\frac {3 B \,a^{2} b d \tan \left (f x +e \right )^{2}}{2}+\frac {3 B a \,b^{2} c \tan \left (f x +e \right )^{2}}{2}+\frac {3 C \,a^{2} b c \tan \left (f x +e \right )^{2}}{2}-\frac {3 C a \,b^{2} d \tan \left (f x +e \right )^{2}}{2}+3 \tan \left (f x +e \right ) A a \,b^{2} c +3 \tan \left (f x +e \right ) B \,a^{2} b c -3 \tan \left (f x +e \right ) B a \,b^{2} d -3 \tan \left (f x +e \right ) C \,a^{2} b d +\frac {3 C a \,b^{2} d \tan \left (f x +e \right )^{4}}{4}+\frac {3 A a \,b^{2} d \tan \left (f x +e \right )^{2}}{2}+B a \,b^{2} d \tan \left (f x +e \right )^{3}+C \,a^{2} b d \tan \left (f x +e \right )^{3}+C a \,b^{2} c \tan \left (f x +e \right )^{3}}{f}\) |
\(639\) |
default |
\(\frac {\frac {\left (A \,a^{3} d +3 A \,a^{2} b c -3 A a \,b^{2} d -A \,b^{3} c +B \,a^{3} c -3 B \,a^{2} b d -3 B a \,b^{2} c +B \,b^{3} d -a^{3} C d -3 C \,a^{2} b c +3 C a \,b^{2} d +C \,b^{3} c \right ) \ln \left (1+\tan \left (f x +e \right )^{2}\right )}{2}+\left (A \,a^{3} c -3 A \,a^{2} b d -3 A a \,b^{2} c +A \,b^{3} d -B \,a^{3} d -3 B \,a^{2} b c +3 B a \,b^{2} d +B \,b^{3} c -C \,a^{3} c +3 C \,a^{2} b d +3 C a \,b^{2} c -C \,b^{3} d \right ) \arctan \left (\tan \left (f x +e \right )\right )+\frac {C \,a^{3} d \tan \left (f x +e \right )^{2}}{2}-\frac {C \,b^{3} c \tan \left (f x +e \right )^{2}}{2}+\frac {B \,b^{3} c \tan \left (f x +e \right )^{3}}{3}-\frac {C \,b^{3} d \tan \left (f x +e \right )^{3}}{3}+\frac {B \,b^{3} d \tan \left (f x +e \right )^{4}}{4}+\frac {C \,b^{3} c \tan \left (f x +e \right )^{4}}{4}+\frac {A \,b^{3} d \tan \left (f x +e \right )^{3}}{3}+\frac {A \,b^{3} c \tan \left (f x +e \right )^{2}}{2}-\frac {B \,b^{3} d \tan \left (f x +e \right )^{2}}{2}+\tan \left (f x +e \right ) C \,b^{3} d -\tan \left (f x +e \right ) A \,b^{3} d +\tan \left (f x +e \right ) B \,a^{3} d -\tan \left (f x +e \right ) B \,b^{3} c +\tan \left (f x +e \right ) C \,a^{3} c +\frac {C \,b^{3} d \tan \left (f x +e \right )^{5}}{5}+3 \tan \left (f x +e \right ) A \,a^{2} b d -3 \tan \left (f x +e \right ) C a \,b^{2} c +\frac {3 B \,a^{2} b d \tan \left (f x +e \right )^{2}}{2}+\frac {3 B a \,b^{2} c \tan \left (f x +e \right )^{2}}{2}+\frac {3 C \,a^{2} b c \tan \left (f x +e \right )^{2}}{2}-\frac {3 C a \,b^{2} d \tan \left (f x +e \right )^{2}}{2}+3 \tan \left (f x +e \right ) A a \,b^{2} c +3 \tan \left (f x +e \right ) B \,a^{2} b c -3 \tan \left (f x +e \right ) B a \,b^{2} d -3 \tan \left (f x +e \right ) C \,a^{2} b d +\frac {3 C a \,b^{2} d \tan \left (f x +e \right )^{4}}{4}+\frac {3 A a \,b^{2} d \tan \left (f x +e \right )^{2}}{2}+B a \,b^{2} d \tan \left (f x +e \right )^{3}+C \,a^{2} b d \tan \left (f x +e \right )^{3}+C a \,b^{2} c \tan \left (f x +e \right )^{3}}{f}\) |
\(639\) |
parallelrisch |
\(\frac {30 C \,a^{3} d \tan \left (f x +e \right )^{2}-30 C \,b^{3} c \tan \left (f x +e \right )^{2}+20 B \,b^{3} c \tan \left (f x +e \right )^{3}-20 C \,b^{3} d \tan \left (f x +e \right )^{3}+15 B \,b^{3} d \tan \left (f x +e \right )^{4}+15 C \,b^{3} c \tan \left (f x +e \right )^{4}+20 A \,b^{3} d \tan \left (f x +e \right )^{3}+30 A \,b^{3} c \tan \left (f x +e \right )^{2}-30 B \,b^{3} d \tan \left (f x +e \right )^{2}+60 \tan \left (f x +e \right ) C \,b^{3} d -60 \tan \left (f x +e \right ) A \,b^{3} d +60 \tan \left (f x +e \right ) B \,a^{3} d -60 \tan \left (f x +e \right ) B \,b^{3} c +60 \tan \left (f x +e \right ) C \,a^{3} c +12 C \,b^{3} d \tan \left (f x +e \right )^{5}+180 \tan \left (f x +e \right ) A \,a^{2} b d -180 \tan \left (f x +e \right ) C a \,b^{2} c +90 B \,a^{2} b d \tan \left (f x +e \right )^{2}+90 B a \,b^{2} c \tan \left (f x +e \right )^{2}+90 C \,a^{2} b c \tan \left (f x +e \right )^{2}-90 C a \,b^{2} d \tan \left (f x +e \right )^{2}+180 \tan \left (f x +e \right ) A a \,b^{2} c +180 \tan \left (f x +e \right ) B \,a^{2} b c -180 \tan \left (f x +e \right ) B a \,b^{2} d -180 \tan \left (f x +e \right ) C \,a^{2} b d +45 C a \,b^{2} d \tan \left (f x +e \right )^{4}+90 A a \,b^{2} d \tan \left (f x +e \right )^{2}+60 B a \,b^{2} d \tan \left (f x +e \right )^{3}+60 C \,a^{2} b d \tan \left (f x +e \right )^{3}+60 C a \,b^{2} c \tan \left (f x +e \right )^{3}+60 A \,a^{3} c f x +60 A \,b^{3} d f x -60 B \,a^{3} d f x +60 B \,b^{3} c f x -60 C \,a^{3} c f x -60 C \,b^{3} d f x +30 A \ln \left (1+\tan \left (f x +e \right )^{2}\right ) a^{3} d -30 A \ln \left (1+\tan \left (f x +e \right )^{2}\right ) b^{3} c +30 B \ln \left (1+\tan \left (f x +e \right )^{2}\right ) a^{3} c +30 B \ln \left (1+\tan \left (f x +e \right )^{2}\right ) b^{3} d -30 C \ln \left (1+\tan \left (f x +e \right )^{2}\right ) a^{3} d +30 C \ln \left (1+\tan \left (f x +e \right )^{2}\right ) b^{3} c +90 A \ln \left (1+\tan \left (f x +e \right )^{2}\right ) a^{2} b c -90 A \ln \left (1+\tan \left (f x +e \right )^{2}\right ) a \,b^{2} d -90 B \ln \left (1+\tan \left (f x +e \right )^{2}\right ) a^{2} b d -90 B \ln \left (1+\tan \left (f x +e \right )^{2}\right ) a \,b^{2} c -90 C \ln \left (1+\tan \left (f x +e \right )^{2}\right ) a^{2} b c +90 C \ln \left (1+\tan \left (f x +e \right )^{2}\right ) a \,b^{2} d -180 A \,a^{2} b d f x -180 A a \,b^{2} c f x -180 B \,a^{2} b c f x +180 B a \,b^{2} d f x +180 C \,a^{2} b d f x +180 C a \,b^{2} c f x}{60 f}\) |
\(786\) |
risch |
\(\text {Expression too large to display}\) |
\(2096\) |
| | |
|
|
|
[In]
int((a+b*tan(f*x+e))^3*(c+d*tan(f*x+e))*(A+B*tan(f*x+e)+C*tan(f*x+e)^2),x,method=_RETURNVERBOSE)
[Out]
1/2*(A*a^3*d+3*A*a^2*b*c+B*a^3*c)/f*ln(1+tan(f*x+e)^2)+(B*b^3*d+3*C*a*b^2*d+C*b^3*c)/f*(1/4*tan(f*x+e)^4-1/2*t
an(f*x+e)^2+1/2*ln(1+tan(f*x+e)^2))+(A*b^3*d+3*B*a*b^2*d+B*b^3*c+3*C*a^2*b*d+3*C*a*b^2*c)/f*(1/3*tan(f*x+e)^3-
tan(f*x+e)+arctan(tan(f*x+e)))+(3*A*a^2*b*d+3*A*a*b^2*c+B*a^3*d+3*B*a^2*b*c+C*a^3*c)/f*(tan(f*x+e)-arctan(tan(
f*x+e)))+(3*A*a*b^2*d+A*b^3*c+3*B*a^2*b*d+3*B*a*b^2*c+C*a^3*d+3*C*a^2*b*c)/f*(1/2*tan(f*x+e)^2-1/2*ln(1+tan(f*
x+e)^2))+A*a^3*c*x+C*b^3*d/f*(1/5*tan(f*x+e)^5-1/3*tan(f*x+e)^3+tan(f*x+e)-arctan(tan(f*x+e)))
Fricas [A] (verification not implemented)
none
Time = 0.27 (sec) , antiderivative size = 415, normalized size of antiderivative = 1.18
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x)) \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right ) \, dx=\frac {12 \, C b^{3} d \tan \left (f x + e\right )^{5} + 15 \, {\left (C b^{3} c + {\left (3 \, C a b^{2} + B b^{3}\right )} d\right )} \tan \left (f x + e\right )^{4} + 20 \, {\left ({\left (3 \, C a b^{2} + B b^{3}\right )} c + {\left (3 \, C a^{2} b + 3 \, B a b^{2} + {\left (A - C\right )} b^{3}\right )} d\right )} \tan \left (f x + e\right )^{3} + 60 \, {\left ({\left ({\left (A - C\right )} a^{3} - 3 \, B a^{2} b - 3 \, {\left (A - C\right )} a b^{2} + B b^{3}\right )} c - {\left (B a^{3} + 3 \, {\left (A - C\right )} a^{2} b - 3 \, B a b^{2} - {\left (A - C\right )} b^{3}\right )} d\right )} f x + 30 \, {\left ({\left (3 \, C a^{2} b + 3 \, B a b^{2} + {\left (A - C\right )} b^{3}\right )} c + {\left (C a^{3} + 3 \, B a^{2} b + 3 \, {\left (A - C\right )} a b^{2} - B b^{3}\right )} d\right )} \tan \left (f x + e\right )^{2} - 30 \, {\left ({\left (B a^{3} + 3 \, {\left (A - C\right )} a^{2} b - 3 \, B a b^{2} - {\left (A - C\right )} b^{3}\right )} c + {\left ({\left (A - C\right )} a^{3} - 3 \, B a^{2} b - 3 \, {\left (A - C\right )} a b^{2} + B b^{3}\right )} d\right )} \log \left (\frac {1}{\tan \left (f x + e\right )^{2} + 1}\right ) + 60 \, {\left ({\left (C a^{3} + 3 \, B a^{2} b + 3 \, {\left (A - C\right )} a b^{2} - B b^{3}\right )} c + {\left (B a^{3} + 3 \, {\left (A - C\right )} a^{2} b - 3 \, B a b^{2} - {\left (A - C\right )} b^{3}\right )} d\right )} \tan \left (f x + e\right )}{60 \, f}
\]
[In]
integrate((a+b*tan(f*x+e))^3*(c+d*tan(f*x+e))*(A+B*tan(f*x+e)+C*tan(f*x+e)^2),x, algorithm="fricas")
[Out]
1/60*(12*C*b^3*d*tan(f*x + e)^5 + 15*(C*b^3*c + (3*C*a*b^2 + B*b^3)*d)*tan(f*x + e)^4 + 20*((3*C*a*b^2 + B*b^3
)*c + (3*C*a^2*b + 3*B*a*b^2 + (A - C)*b^3)*d)*tan(f*x + e)^3 + 60*(((A - C)*a^3 - 3*B*a^2*b - 3*(A - C)*a*b^2
+ B*b^3)*c - (B*a^3 + 3*(A - C)*a^2*b - 3*B*a*b^2 - (A - C)*b^3)*d)*f*x + 30*((3*C*a^2*b + 3*B*a*b^2 + (A - C
)*b^3)*c + (C*a^3 + 3*B*a^2*b + 3*(A - C)*a*b^2 - B*b^3)*d)*tan(f*x + e)^2 - 30*((B*a^3 + 3*(A - C)*a^2*b - 3*
B*a*b^2 - (A - C)*b^3)*c + ((A - C)*a^3 - 3*B*a^2*b - 3*(A - C)*a*b^2 + B*b^3)*d)*log(1/(tan(f*x + e)^2 + 1))
+ 60*((C*a^3 + 3*B*a^2*b + 3*(A - C)*a*b^2 - B*b^3)*c + (B*a^3 + 3*(A - C)*a^2*b - 3*B*a*b^2 - (A - C)*b^3)*d)
*tan(f*x + e))/f
Sympy [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 1001 vs. \(2 (316) = 632\).
Time = 0.29 (sec) , antiderivative size = 1001, normalized size of antiderivative = 2.84
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x)) \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right ) \, dx=\text {Too large to display}
\]
[In]
integrate((a+b*tan(f*x+e))**3*(c+d*tan(f*x+e))*(A+B*tan(f*x+e)+C*tan(f*x+e)**2),x)
[Out]
Piecewise((A*a**3*c*x + A*a**3*d*log(tan(e + f*x)**2 + 1)/(2*f) + 3*A*a**2*b*c*log(tan(e + f*x)**2 + 1)/(2*f)
- 3*A*a**2*b*d*x + 3*A*a**2*b*d*tan(e + f*x)/f - 3*A*a*b**2*c*x + 3*A*a*b**2*c*tan(e + f*x)/f - 3*A*a*b**2*d*l
og(tan(e + f*x)**2 + 1)/(2*f) + 3*A*a*b**2*d*tan(e + f*x)**2/(2*f) - A*b**3*c*log(tan(e + f*x)**2 + 1)/(2*f) +
A*b**3*c*tan(e + f*x)**2/(2*f) + A*b**3*d*x + A*b**3*d*tan(e + f*x)**3/(3*f) - A*b**3*d*tan(e + f*x)/f + B*a*
*3*c*log(tan(e + f*x)**2 + 1)/(2*f) - B*a**3*d*x + B*a**3*d*tan(e + f*x)/f - 3*B*a**2*b*c*x + 3*B*a**2*b*c*tan
(e + f*x)/f - 3*B*a**2*b*d*log(tan(e + f*x)**2 + 1)/(2*f) + 3*B*a**2*b*d*tan(e + f*x)**2/(2*f) - 3*B*a*b**2*c*
log(tan(e + f*x)**2 + 1)/(2*f) + 3*B*a*b**2*c*tan(e + f*x)**2/(2*f) + 3*B*a*b**2*d*x + B*a*b**2*d*tan(e + f*x)
**3/f - 3*B*a*b**2*d*tan(e + f*x)/f + B*b**3*c*x + B*b**3*c*tan(e + f*x)**3/(3*f) - B*b**3*c*tan(e + f*x)/f +
B*b**3*d*log(tan(e + f*x)**2 + 1)/(2*f) + B*b**3*d*tan(e + f*x)**4/(4*f) - B*b**3*d*tan(e + f*x)**2/(2*f) - C*
a**3*c*x + C*a**3*c*tan(e + f*x)/f - C*a**3*d*log(tan(e + f*x)**2 + 1)/(2*f) + C*a**3*d*tan(e + f*x)**2/(2*f)
- 3*C*a**2*b*c*log(tan(e + f*x)**2 + 1)/(2*f) + 3*C*a**2*b*c*tan(e + f*x)**2/(2*f) + 3*C*a**2*b*d*x + C*a**2*b
*d*tan(e + f*x)**3/f - 3*C*a**2*b*d*tan(e + f*x)/f + 3*C*a*b**2*c*x + C*a*b**2*c*tan(e + f*x)**3/f - 3*C*a*b**
2*c*tan(e + f*x)/f + 3*C*a*b**2*d*log(tan(e + f*x)**2 + 1)/(2*f) + 3*C*a*b**2*d*tan(e + f*x)**4/(4*f) - 3*C*a*
b**2*d*tan(e + f*x)**2/(2*f) + C*b**3*c*log(tan(e + f*x)**2 + 1)/(2*f) + C*b**3*c*tan(e + f*x)**4/(4*f) - C*b*
*3*c*tan(e + f*x)**2/(2*f) - C*b**3*d*x + C*b**3*d*tan(e + f*x)**5/(5*f) - C*b**3*d*tan(e + f*x)**3/(3*f) + C*
b**3*d*tan(e + f*x)/f, Ne(f, 0)), (x*(a + b*tan(e))**3*(c + d*tan(e))*(A + B*tan(e) + C*tan(e)**2), True))
Maxima [A] (verification not implemented)
none
Time = 0.40 (sec) , antiderivative size = 416, normalized size of antiderivative = 1.18
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x)) \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right ) \, dx=\frac {12 \, C b^{3} d \tan \left (f x + e\right )^{5} + 15 \, {\left (C b^{3} c + {\left (3 \, C a b^{2} + B b^{3}\right )} d\right )} \tan \left (f x + e\right )^{4} + 20 \, {\left ({\left (3 \, C a b^{2} + B b^{3}\right )} c + {\left (3 \, C a^{2} b + 3 \, B a b^{2} + {\left (A - C\right )} b^{3}\right )} d\right )} \tan \left (f x + e\right )^{3} + 30 \, {\left ({\left (3 \, C a^{2} b + 3 \, B a b^{2} + {\left (A - C\right )} b^{3}\right )} c + {\left (C a^{3} + 3 \, B a^{2} b + 3 \, {\left (A - C\right )} a b^{2} - B b^{3}\right )} d\right )} \tan \left (f x + e\right )^{2} + 60 \, {\left ({\left ({\left (A - C\right )} a^{3} - 3 \, B a^{2} b - 3 \, {\left (A - C\right )} a b^{2} + B b^{3}\right )} c - {\left (B a^{3} + 3 \, {\left (A - C\right )} a^{2} b - 3 \, B a b^{2} - {\left (A - C\right )} b^{3}\right )} d\right )} {\left (f x + e\right )} + 30 \, {\left ({\left (B a^{3} + 3 \, {\left (A - C\right )} a^{2} b - 3 \, B a b^{2} - {\left (A - C\right )} b^{3}\right )} c + {\left ({\left (A - C\right )} a^{3} - 3 \, B a^{2} b - 3 \, {\left (A - C\right )} a b^{2} + B b^{3}\right )} d\right )} \log \left (\tan \left (f x + e\right )^{2} + 1\right ) + 60 \, {\left ({\left (C a^{3} + 3 \, B a^{2} b + 3 \, {\left (A - C\right )} a b^{2} - B b^{3}\right )} c + {\left (B a^{3} + 3 \, {\left (A - C\right )} a^{2} b - 3 \, B a b^{2} - {\left (A - C\right )} b^{3}\right )} d\right )} \tan \left (f x + e\right )}{60 \, f}
\]
[In]
integrate((a+b*tan(f*x+e))^3*(c+d*tan(f*x+e))*(A+B*tan(f*x+e)+C*tan(f*x+e)^2),x, algorithm="maxima")
[Out]
1/60*(12*C*b^3*d*tan(f*x + e)^5 + 15*(C*b^3*c + (3*C*a*b^2 + B*b^3)*d)*tan(f*x + e)^4 + 20*((3*C*a*b^2 + B*b^3
)*c + (3*C*a^2*b + 3*B*a*b^2 + (A - C)*b^3)*d)*tan(f*x + e)^3 + 30*((3*C*a^2*b + 3*B*a*b^2 + (A - C)*b^3)*c +
(C*a^3 + 3*B*a^2*b + 3*(A - C)*a*b^2 - B*b^3)*d)*tan(f*x + e)^2 + 60*(((A - C)*a^3 - 3*B*a^2*b - 3*(A - C)*a*b
^2 + B*b^3)*c - (B*a^3 + 3*(A - C)*a^2*b - 3*B*a*b^2 - (A - C)*b^3)*d)*(f*x + e) + 30*((B*a^3 + 3*(A - C)*a^2*
b - 3*B*a*b^2 - (A - C)*b^3)*c + ((A - C)*a^3 - 3*B*a^2*b - 3*(A - C)*a*b^2 + B*b^3)*d)*log(tan(f*x + e)^2 + 1
) + 60*((C*a^3 + 3*B*a^2*b + 3*(A - C)*a*b^2 - B*b^3)*c + (B*a^3 + 3*(A - C)*a^2*b - 3*B*a*b^2 - (A - C)*b^3)*
d)*tan(f*x + e))/f
Giac [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 10353 vs. \(2 (345) = 690\).
Time = 9.66 (sec) , antiderivative size = 10353, normalized size of antiderivative = 29.33
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x)) \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right ) \, dx=\text {Too large to display}
\]
[In]
integrate((a+b*tan(f*x+e))^3*(c+d*tan(f*x+e))*(A+B*tan(f*x+e)+C*tan(f*x+e)^2),x, algorithm="giac")
[Out]
1/60*(60*A*a^3*c*f*x*tan(f*x)^5*tan(e)^5 - 60*C*a^3*c*f*x*tan(f*x)^5*tan(e)^5 - 180*B*a^2*b*c*f*x*tan(f*x)^5*t
an(e)^5 - 180*A*a*b^2*c*f*x*tan(f*x)^5*tan(e)^5 + 180*C*a*b^2*c*f*x*tan(f*x)^5*tan(e)^5 + 60*B*b^3*c*f*x*tan(f
*x)^5*tan(e)^5 - 60*B*a^3*d*f*x*tan(f*x)^5*tan(e)^5 - 180*A*a^2*b*d*f*x*tan(f*x)^5*tan(e)^5 + 180*C*a^2*b*d*f*
x*tan(f*x)^5*tan(e)^5 + 180*B*a*b^2*d*f*x*tan(f*x)^5*tan(e)^5 + 60*A*b^3*d*f*x*tan(f*x)^5*tan(e)^5 - 60*C*b^3*
d*f*x*tan(f*x)^5*tan(e)^5 - 30*B*a^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^
2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 - 90*A*a^2*b*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan
(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 + 90*C*a^2*b*c*log(4*(tan(f*x)
^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 +
90*B*a*b^2*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2
+ 1))*tan(f*x)^5*tan(e)^5 + 30*A*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^
2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 - 30*C*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e
) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 - 30*A*a^3*d*log(4*(tan(f*x)^2*t
an(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 + 30*C
*a^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*
tan(f*x)^5*tan(e)^5 + 90*B*a^2*b*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 +
tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 + 90*A*a*b^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e)
+ 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 - 90*C*a*b^2*d*log(4*(tan(f*x)^2*t
an(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 - 30*B
*b^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*
tan(f*x)^5*tan(e)^5 - 300*A*a^3*c*f*x*tan(f*x)^4*tan(e)^4 + 300*C*a^3*c*f*x*tan(f*x)^4*tan(e)^4 + 900*B*a^2*b*
c*f*x*tan(f*x)^4*tan(e)^4 + 900*A*a*b^2*c*f*x*tan(f*x)^4*tan(e)^4 - 900*C*a*b^2*c*f*x*tan(f*x)^4*tan(e)^4 - 30
0*B*b^3*c*f*x*tan(f*x)^4*tan(e)^4 + 300*B*a^3*d*f*x*tan(f*x)^4*tan(e)^4 + 900*A*a^2*b*d*f*x*tan(f*x)^4*tan(e)^
4 - 900*C*a^2*b*d*f*x*tan(f*x)^4*tan(e)^4 - 900*B*a*b^2*d*f*x*tan(f*x)^4*tan(e)^4 - 300*A*b^3*d*f*x*tan(f*x)^4
*tan(e)^4 + 300*C*b^3*d*f*x*tan(f*x)^4*tan(e)^4 + 90*C*a^2*b*c*tan(f*x)^5*tan(e)^5 + 90*B*a*b^2*c*tan(f*x)^5*t
an(e)^5 + 30*A*b^3*c*tan(f*x)^5*tan(e)^5 - 45*C*b^3*c*tan(f*x)^5*tan(e)^5 + 30*C*a^3*d*tan(f*x)^5*tan(e)^5 + 9
0*B*a^2*b*d*tan(f*x)^5*tan(e)^5 + 90*A*a*b^2*d*tan(f*x)^5*tan(e)^5 - 135*C*a*b^2*d*tan(f*x)^5*tan(e)^5 - 45*B*
b^3*d*tan(f*x)^5*tan(e)^5 + 150*B*a^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)
^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 + 450*A*a^2*b*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*t
an(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 - 450*C*a^2*b*c*log(4*(tan(f
*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4
- 450*B*a*b^2*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e
)^2 + 1))*tan(f*x)^4*tan(e)^4 - 150*A*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*ta
n(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 + 150*C*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)
*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 + 150*A*a^3*d*log(4*(tan(f
*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4
- 150*C*a^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^
2 + 1))*tan(f*x)^4*tan(e)^4 - 450*B*a^2*b*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*ta
n(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 - 450*A*a*b^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*
x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 + 450*C*a*b^2*d*log(4*(t
an(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(
e)^4 + 150*B*b^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan
(e)^2 + 1))*tan(f*x)^4*tan(e)^4 - 60*C*a^3*c*tan(f*x)^5*tan(e)^4 - 180*B*a^2*b*c*tan(f*x)^5*tan(e)^4 - 180*A*a
*b^2*c*tan(f*x)^5*tan(e)^4 + 180*C*a*b^2*c*tan(f*x)^5*tan(e)^4 + 60*B*b^3*c*tan(f*x)^5*tan(e)^4 - 60*B*a^3*d*t
an(f*x)^5*tan(e)^4 - 180*A*a^2*b*d*tan(f*x)^5*tan(e)^4 + 180*C*a^2*b*d*tan(f*x)^5*tan(e)^4 + 180*B*a*b^2*d*tan
(f*x)^5*tan(e)^4 + 60*A*b^3*d*tan(f*x)^5*tan(e)^4 - 60*C*b^3*d*tan(f*x)^5*tan(e)^4 - 60*C*a^3*c*tan(f*x)^4*tan
(e)^5 - 180*B*a^2*b*c*tan(f*x)^4*tan(e)^5 - 180*A*a*b^2*c*tan(f*x)^4*tan(e)^5 + 180*C*a*b^2*c*tan(f*x)^4*tan(e
)^5 + 60*B*b^3*c*tan(f*x)^4*tan(e)^5 - 60*B*a^3*d*tan(f*x)^4*tan(e)^5 - 180*A*a^2*b*d*tan(f*x)^4*tan(e)^5 + 18
0*C*a^2*b*d*tan(f*x)^4*tan(e)^5 + 180*B*a*b^2*d*tan(f*x)^4*tan(e)^5 + 60*A*b^3*d*tan(f*x)^4*tan(e)^5 - 60*C*b^
3*d*tan(f*x)^4*tan(e)^5 + 600*A*a^3*c*f*x*tan(f*x)^3*tan(e)^3 - 600*C*a^3*c*f*x*tan(f*x)^3*tan(e)^3 - 1800*B*a
^2*b*c*f*x*tan(f*x)^3*tan(e)^3 - 1800*A*a*b^2*c*f*x*tan(f*x)^3*tan(e)^3 + 1800*C*a*b^2*c*f*x*tan(f*x)^3*tan(e)
^3 + 600*B*b^3*c*f*x*tan(f*x)^3*tan(e)^3 - 600*B*a^3*d*f*x*tan(f*x)^3*tan(e)^3 - 1800*A*a^2*b*d*f*x*tan(f*x)^3
*tan(e)^3 + 1800*C*a^2*b*d*f*x*tan(f*x)^3*tan(e)^3 + 1800*B*a*b^2*d*f*x*tan(f*x)^3*tan(e)^3 + 600*A*b^3*d*f*x*
tan(f*x)^3*tan(e)^3 - 600*C*b^3*d*f*x*tan(f*x)^3*tan(e)^3 + 90*C*a^2*b*c*tan(f*x)^5*tan(e)^3 + 90*B*a*b^2*c*ta
n(f*x)^5*tan(e)^3 + 30*A*b^3*c*tan(f*x)^5*tan(e)^3 - 30*C*b^3*c*tan(f*x)^5*tan(e)^3 + 30*C*a^3*d*tan(f*x)^5*ta
n(e)^3 + 90*B*a^2*b*d*tan(f*x)^5*tan(e)^3 + 90*A*a*b^2*d*tan(f*x)^5*tan(e)^3 - 90*C*a*b^2*d*tan(f*x)^5*tan(e)^
3 - 30*B*b^3*d*tan(f*x)^5*tan(e)^3 - 270*C*a^2*b*c*tan(f*x)^4*tan(e)^4 - 270*B*a*b^2*c*tan(f*x)^4*tan(e)^4 - 9
0*A*b^3*c*tan(f*x)^4*tan(e)^4 + 165*C*b^3*c*tan(f*x)^4*tan(e)^4 - 90*C*a^3*d*tan(f*x)^4*tan(e)^4 - 270*B*a^2*b
*d*tan(f*x)^4*tan(e)^4 - 270*A*a*b^2*d*tan(f*x)^4*tan(e)^4 + 495*C*a*b^2*d*tan(f*x)^4*tan(e)^4 + 165*B*b^3*d*t
an(f*x)^4*tan(e)^4 + 90*C*a^2*b*c*tan(f*x)^3*tan(e)^5 + 90*B*a*b^2*c*tan(f*x)^3*tan(e)^5 + 30*A*b^3*c*tan(f*x)
^3*tan(e)^5 - 30*C*b^3*c*tan(f*x)^3*tan(e)^5 + 30*C*a^3*d*tan(f*x)^3*tan(e)^5 + 90*B*a^2*b*d*tan(f*x)^3*tan(e)
^5 + 90*A*a*b^2*d*tan(f*x)^3*tan(e)^5 - 90*C*a*b^2*d*tan(f*x)^3*tan(e)^5 - 30*B*b^3*d*tan(f*x)^3*tan(e)^5 - 60
*C*a*b^2*c*tan(f*x)^5*tan(e)^2 - 20*B*b^3*c*tan(f*x)^5*tan(e)^2 - 60*C*a^2*b*d*tan(f*x)^5*tan(e)^2 - 60*B*a*b^
2*d*tan(f*x)^5*tan(e)^2 - 20*A*b^3*d*tan(f*x)^5*tan(e)^2 + 20*C*b^3*d*tan(f*x)^5*tan(e)^2 - 300*B*a^3*c*log(4*
(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*ta
n(e)^3 - 900*A*a^2*b*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 +
tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 900*C*a^2*b*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f
*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 900*B*a*b^2*c*log(4*(tan(f*x)^2*tan(e)^2 -
2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 300*A*b^3*c*lo
g(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^
3*tan(e)^3 - 300*C*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2
+ tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 - 300*A*a^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f
*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 300*C*a^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*
tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 900*B*a^2*b*d*lo
g(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^
3*tan(e)^3 + 900*A*a*b^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)
^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 - 900*C*a*b^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(t
an(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 - 300*B*b^3*d*log(4*(tan(f*x)^2*tan(e)^2
- 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 240*C*a^3*c*
tan(f*x)^4*tan(e)^3 + 720*B*a^2*b*c*tan(f*x)^4*tan(e)^3 + 720*A*a*b^2*c*tan(f*x)^4*tan(e)^3 - 900*C*a*b^2*c*ta
n(f*x)^4*tan(e)^3 - 300*B*b^3*c*tan(f*x)^4*tan(e)^3 + 240*B*a^3*d*tan(f*x)^4*tan(e)^3 + 720*A*a^2*b*d*tan(f*x)
^4*tan(e)^3 - 900*C*a^2*b*d*tan(f*x)^4*tan(e)^3 - 900*B*a*b^2*d*tan(f*x)^4*tan(e)^3 - 300*A*b^3*d*tan(f*x)^4*t
an(e)^3 + 300*C*b^3*d*tan(f*x)^4*tan(e)^3 + 240*C*a^3*c*tan(f*x)^3*tan(e)^4 + 720*B*a^2*b*c*tan(f*x)^3*tan(e)^
4 + 720*A*a*b^2*c*tan(f*x)^3*tan(e)^4 - 900*C*a*b^2*c*tan(f*x)^3*tan(e)^4 - 300*B*b^3*c*tan(f*x)^3*tan(e)^4 +
240*B*a^3*d*tan(f*x)^3*tan(e)^4 + 720*A*a^2*b*d*tan(f*x)^3*tan(e)^4 - 900*C*a^2*b*d*tan(f*x)^3*tan(e)^4 - 900*
B*a*b^2*d*tan(f*x)^3*tan(e)^4 - 300*A*b^3*d*tan(f*x)^3*tan(e)^4 + 300*C*b^3*d*tan(f*x)^3*tan(e)^4 - 60*C*a*b^2
*c*tan(f*x)^2*tan(e)^5 - 20*B*b^3*c*tan(f*x)^2*tan(e)^5 - 60*C*a^2*b*d*tan(f*x)^2*tan(e)^5 - 60*B*a*b^2*d*tan(
f*x)^2*tan(e)^5 - 20*A*b^3*d*tan(f*x)^2*tan(e)^5 + 20*C*b^3*d*tan(f*x)^2*tan(e)^5 + 15*C*b^3*c*tan(f*x)^5*tan(
e) + 45*C*a*b^2*d*tan(f*x)^5*tan(e) + 15*B*b^3*d*tan(f*x)^5*tan(e) - 600*A*a^3*c*f*x*tan(f*x)^2*tan(e)^2 + 600
*C*a^3*c*f*x*tan(f*x)^2*tan(e)^2 + 1800*B*a^2*b*c*f*x*tan(f*x)^2*tan(e)^2 + 1800*A*a*b^2*c*f*x*tan(f*x)^2*tan(
e)^2 - 1800*C*a*b^2*c*f*x*tan(f*x)^2*tan(e)^2 - 600*B*b^3*c*f*x*tan(f*x)^2*tan(e)^2 + 600*B*a^3*d*f*x*tan(f*x)
^2*tan(e)^2 + 1800*A*a^2*b*d*f*x*tan(f*x)^2*tan(e)^2 - 1800*C*a^2*b*d*f*x*tan(f*x)^2*tan(e)^2 - 1800*B*a*b^2*d
*f*x*tan(f*x)^2*tan(e)^2 - 600*A*b^3*d*f*x*tan(f*x)^2*tan(e)^2 + 600*C*b^3*d*f*x*tan(f*x)^2*tan(e)^2 - 270*C*a
^2*b*c*tan(f*x)^4*tan(e)^2 - 270*B*a*b^2*c*tan(f*x)^4*tan(e)^2 - 90*A*b^3*c*tan(f*x)^4*tan(e)^2 + 150*C*b^3*c*
tan(f*x)^4*tan(e)^2 - 90*C*a^3*d*tan(f*x)^4*tan(e)^2 - 270*B*a^2*b*d*tan(f*x)^4*tan(e)^2 - 270*A*a*b^2*d*tan(f
*x)^4*tan(e)^2 + 450*C*a*b^2*d*tan(f*x)^4*tan(e)^2 + 150*B*b^3*d*tan(f*x)^4*tan(e)^2 + 360*C*a^2*b*c*tan(f*x)^
3*tan(e)^3 + 360*B*a*b^2*c*tan(f*x)^3*tan(e)^3 + 120*A*b^3*c*tan(f*x)^3*tan(e)^3 - 180*C*b^3*c*tan(f*x)^3*tan(
e)^3 + 120*C*a^3*d*tan(f*x)^3*tan(e)^3 + 360*B*a^2*b*d*tan(f*x)^3*tan(e)^3 + 360*A*a*b^2*d*tan(f*x)^3*tan(e)^3
- 540*C*a*b^2*d*tan(f*x)^3*tan(e)^3 - 180*B*b^3*d*tan(f*x)^3*tan(e)^3 - 270*C*a^2*b*c*tan(f*x)^2*tan(e)^4 - 2
70*B*a*b^2*c*tan(f*x)^2*tan(e)^4 - 90*A*b^3*c*tan(f*x)^2*tan(e)^4 + 150*C*b^3*c*tan(f*x)^2*tan(e)^4 - 90*C*a^3
*d*tan(f*x)^2*tan(e)^4 - 270*B*a^2*b*d*tan(f*x)^2*tan(e)^4 - 270*A*a*b^2*d*tan(f*x)^2*tan(e)^4 + 450*C*a*b^2*d
*tan(f*x)^2*tan(e)^4 + 150*B*b^3*d*tan(f*x)^2*tan(e)^4 + 15*C*b^3*c*tan(f*x)*tan(e)^5 + 45*C*a*b^2*d*tan(f*x)*
tan(e)^5 + 15*B*b^3*d*tan(f*x)*tan(e)^5 - 12*C*b^3*d*tan(f*x)^5 + 120*C*a*b^2*c*tan(f*x)^4*tan(e) + 40*B*b^3*c
*tan(f*x)^4*tan(e) + 120*C*a^2*b*d*tan(f*x)^4*tan(e) + 120*B*a*b^2*d*tan(f*x)^4*tan(e) + 40*A*b^3*d*tan(f*x)^4
*tan(e) - 100*C*b^3*d*tan(f*x)^4*tan(e) + 300*B*a^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan
(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 + 900*A*a^2*b*c*log(4*(tan(f*x)^2*tan(e)^2
- 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 - 900*C*a^2*b*
c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f
*x)^2*tan(e)^2 - 900*B*a*b^2*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(
f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 - 300*A*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/
(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 + 300*C*b^3*c*log(4*(tan(f*x)^2*tan(e)^
2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 + 300*A*a^3*
d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f
*x)^2*tan(e)^2 - 300*C*a^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*
x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 - 900*B*a^2*b*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/
(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 - 900*A*a*b^2*d*log(4*(tan(f*x)^2*tan(e
)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 + 900*C*a*
b^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*t
an(f*x)^2*tan(e)^2 + 300*B*b^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + ta
n(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 - 360*C*a^3*c*tan(f*x)^3*tan(e)^2 - 1080*B*a^2*b*c*tan(f*x)^3*ta
n(e)^2 - 1080*A*a*b^2*c*tan(f*x)^3*tan(e)^2 + 1440*C*a*b^2*c*tan(f*x)^3*tan(e)^2 + 480*B*b^3*c*tan(f*x)^3*tan(
e)^2 - 360*B*a^3*d*tan(f*x)^3*tan(e)^2 - 1080*A*a^2*b*d*tan(f*x)^3*tan(e)^2 + 1440*C*a^2*b*d*tan(f*x)^3*tan(e)
^2 + 1440*B*a*b^2*d*tan(f*x)^3*tan(e)^2 + 480*A*b^3*d*tan(f*x)^3*tan(e)^2 - 600*C*b^3*d*tan(f*x)^3*tan(e)^2 -
360*C*a^3*c*tan(f*x)^2*tan(e)^3 - 1080*B*a^2*b*c*tan(f*x)^2*tan(e)^3 - 1080*A*a*b^2*c*tan(f*x)^2*tan(e)^3 + 14
40*C*a*b^2*c*tan(f*x)^2*tan(e)^3 + 480*B*b^3*c*tan(f*x)^2*tan(e)^3 - 360*B*a^3*d*tan(f*x)^2*tan(e)^3 - 1080*A*
a^2*b*d*tan(f*x)^2*tan(e)^3 + 1440*C*a^2*b*d*tan(f*x)^2*tan(e)^3 + 1440*B*a*b^2*d*tan(f*x)^2*tan(e)^3 + 480*A*
b^3*d*tan(f*x)^2*tan(e)^3 - 600*C*b^3*d*tan(f*x)^2*tan(e)^3 + 120*C*a*b^2*c*tan(f*x)*tan(e)^4 + 40*B*b^3*c*tan
(f*x)*tan(e)^4 + 120*C*a^2*b*d*tan(f*x)*tan(e)^4 + 120*B*a*b^2*d*tan(f*x)*tan(e)^4 + 40*A*b^3*d*tan(f*x)*tan(e
)^4 - 100*C*b^3*d*tan(f*x)*tan(e)^4 - 12*C*b^3*d*tan(e)^5 - 15*C*b^3*c*tan(f*x)^4 - 45*C*a*b^2*d*tan(f*x)^4 -
15*B*b^3*d*tan(f*x)^4 + 300*A*a^3*c*f*x*tan(f*x)*tan(e) - 300*C*a^3*c*f*x*tan(f*x)*tan(e) - 900*B*a^2*b*c*f*x*
tan(f*x)*tan(e) - 900*A*a*b^2*c*f*x*tan(f*x)*tan(e) + 900*C*a*b^2*c*f*x*tan(f*x)*tan(e) + 300*B*b^3*c*f*x*tan(
f*x)*tan(e) - 300*B*a^3*d*f*x*tan(f*x)*tan(e) - 900*A*a^2*b*d*f*x*tan(f*x)*tan(e) + 900*C*a^2*b*d*f*x*tan(f*x)
*tan(e) + 900*B*a*b^2*d*f*x*tan(f*x)*tan(e) + 300*A*b^3*d*f*x*tan(f*x)*tan(e) - 300*C*b^3*d*f*x*tan(f*x)*tan(e
) + 270*C*a^2*b*c*tan(f*x)^3*tan(e) + 270*B*a*b^2*c*tan(f*x)^3*tan(e) + 90*A*b^3*c*tan(f*x)^3*tan(e) - 150*C*b
^3*c*tan(f*x)^3*tan(e) + 90*C*a^3*d*tan(f*x)^3*tan(e) + 270*B*a^2*b*d*tan(f*x)^3*tan(e) + 270*A*a*b^2*d*tan(f*
x)^3*tan(e) - 450*C*a*b^2*d*tan(f*x)^3*tan(e) - 150*B*b^3*d*tan(f*x)^3*tan(e) - 360*C*a^2*b*c*tan(f*x)^2*tan(e
)^2 - 360*B*a*b^2*c*tan(f*x)^2*tan(e)^2 - 120*A*b^3*c*tan(f*x)^2*tan(e)^2 + 180*C*b^3*c*tan(f*x)^2*tan(e)^2 -
120*C*a^3*d*tan(f*x)^2*tan(e)^2 - 360*B*a^2*b*d*tan(f*x)^2*tan(e)^2 - 360*A*a*b^2*d*tan(f*x)^2*tan(e)^2 + 540*
C*a*b^2*d*tan(f*x)^2*tan(e)^2 + 180*B*b^3*d*tan(f*x)^2*tan(e)^2 + 270*C*a^2*b*c*tan(f*x)*tan(e)^3 + 270*B*a*b^
2*c*tan(f*x)*tan(e)^3 + 90*A*b^3*c*tan(f*x)*tan(e)^3 - 150*C*b^3*c*tan(f*x)*tan(e)^3 + 90*C*a^3*d*tan(f*x)*tan
(e)^3 + 270*B*a^2*b*d*tan(f*x)*tan(e)^3 + 270*A*a*b^2*d*tan(f*x)*tan(e)^3 - 450*C*a*b^2*d*tan(f*x)*tan(e)^3 -
150*B*b^3*d*tan(f*x)*tan(e)^3 - 15*C*b^3*c*tan(e)^4 - 45*C*a*b^2*d*tan(e)^4 - 15*B*b^3*d*tan(e)^4 - 60*C*a*b^2
*c*tan(f*x)^3 - 20*B*b^3*c*tan(f*x)^3 - 60*C*a^2*b*d*tan(f*x)^3 - 60*B*a*b^2*d*tan(f*x)^3 - 20*A*b^3*d*tan(f*x
)^3 + 20*C*b^3*d*tan(f*x)^3 - 150*B*a^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(
e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) - 450*A*a^2*b*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan
(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) + 450*C*a^2*b*c*log(4*(tan(f*x)^2*
tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) + 450*B*a
*b^2*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*
tan(f*x)*tan(e) + 150*A*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f
*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) - 150*C*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(
f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) - 150*A*a^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan
(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) + 150*C*a^3*d*log(4*(tan(
f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) +
450*B*a^2*b*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2
+ 1))*tan(f*x)*tan(e) + 450*A*a*b^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^
2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) - 450*C*a*b^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e)
+ 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) - 150*B*b^3*d*log(4*(tan(f*x)^2*tan(e
)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) + 240*C*a^3*c*
tan(f*x)^2*tan(e) + 720*B*a^2*b*c*tan(f*x)^2*tan(e) + 720*A*a*b^2*c*tan(f*x)^2*tan(e) - 900*C*a*b^2*c*tan(f*x)
^2*tan(e) - 300*B*b^3*c*tan(f*x)^2*tan(e) + 240*B*a^3*d*tan(f*x)^2*tan(e) + 720*A*a^2*b*d*tan(f*x)^2*tan(e) -
900*C*a^2*b*d*tan(f*x)^2*tan(e) - 900*B*a*b^2*d*tan(f*x)^2*tan(e) - 300*A*b^3*d*tan(f*x)^2*tan(e) + 300*C*b^3*
d*tan(f*x)^2*tan(e) + 240*C*a^3*c*tan(f*x)*tan(e)^2 + 720*B*a^2*b*c*tan(f*x)*tan(e)^2 + 720*A*a*b^2*c*tan(f*x)
*tan(e)^2 - 900*C*a*b^2*c*tan(f*x)*tan(e)^2 - 300*B*b^3*c*tan(f*x)*tan(e)^2 + 240*B*a^3*d*tan(f*x)*tan(e)^2 +
720*A*a^2*b*d*tan(f*x)*tan(e)^2 - 900*C*a^2*b*d*tan(f*x)*tan(e)^2 - 900*B*a*b^2*d*tan(f*x)*tan(e)^2 - 300*A*b^
3*d*tan(f*x)*tan(e)^2 + 300*C*b^3*d*tan(f*x)*tan(e)^2 - 60*C*a*b^2*c*tan(e)^3 - 20*B*b^3*c*tan(e)^3 - 60*C*a^2
*b*d*tan(e)^3 - 60*B*a*b^2*d*tan(e)^3 - 20*A*b^3*d*tan(e)^3 + 20*C*b^3*d*tan(e)^3 - 60*A*a^3*c*f*x + 60*C*a^3*
c*f*x + 180*B*a^2*b*c*f*x + 180*A*a*b^2*c*f*x - 180*C*a*b^2*c*f*x - 60*B*b^3*c*f*x + 60*B*a^3*d*f*x + 180*A*a^
2*b*d*f*x - 180*C*a^2*b*d*f*x - 180*B*a*b^2*d*f*x - 60*A*b^3*d*f*x + 60*C*b^3*d*f*x - 90*C*a^2*b*c*tan(f*x)^2
- 90*B*a*b^2*c*tan(f*x)^2 - 30*A*b^3*c*tan(f*x)^2 + 30*C*b^3*c*tan(f*x)^2 - 30*C*a^3*d*tan(f*x)^2 - 90*B*a^2*b
*d*tan(f*x)^2 - 90*A*a*b^2*d*tan(f*x)^2 + 90*C*a*b^2*d*tan(f*x)^2 + 30*B*b^3*d*tan(f*x)^2 + 270*C*a^2*b*c*tan(
f*x)*tan(e) + 270*B*a*b^2*c*tan(f*x)*tan(e) + 90*A*b^3*c*tan(f*x)*tan(e) - 165*C*b^3*c*tan(f*x)*tan(e) + 90*C*
a^3*d*tan(f*x)*tan(e) + 270*B*a^2*b*d*tan(f*x)*tan(e) + 270*A*a*b^2*d*tan(f*x)*tan(e) - 495*C*a*b^2*d*tan(f*x)
*tan(e) - 165*B*b^3*d*tan(f*x)*tan(e) - 90*C*a^2*b*c*tan(e)^2 - 90*B*a*b^2*c*tan(e)^2 - 30*A*b^3*c*tan(e)^2 +
30*C*b^3*c*tan(e)^2 - 30*C*a^3*d*tan(e)^2 - 90*B*a^2*b*d*tan(e)^2 - 90*A*a*b^2*d*tan(e)^2 + 90*C*a*b^2*d*tan(e
)^2 + 30*B*b^3*d*tan(e)^2 + 30*B*a^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^
2 + tan(f*x)^2 + tan(e)^2 + 1)) + 90*A*a^2*b*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2
*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) - 90*C*a^2*b*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(ta
n(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) - 90*B*a*b^2*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e)
+ 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) - 30*A*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*t
an(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) + 30*C*b^3*c*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(
f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) + 30*A*a^3*d*log(4*(tan(f*x)^2*tan(e)^2 -
2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) - 30*C*a^3*d*log(4*(tan(f*x)^2*tan(e
)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) - 90*B*a^2*b*d*log(4*(tan(f*x)
^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) - 90*A*a*b^2*d*log(4*(
tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) + 90*C*a*b^2*d
*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) + 30*B
*b^3*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))
- 60*C*a^3*c*tan(f*x) - 180*B*a^2*b*c*tan(f*x) - 180*A*a*b^2*c*tan(f*x) + 180*C*a*b^2*c*tan(f*x) + 60*B*b^3*c*
tan(f*x) - 60*B*a^3*d*tan(f*x) - 180*A*a^2*b*d*tan(f*x) + 180*C*a^2*b*d*tan(f*x) + 180*B*a*b^2*d*tan(f*x) + 60
*A*b^3*d*tan(f*x) - 60*C*b^3*d*tan(f*x) - 60*C*a^3*c*tan(e) - 180*B*a^2*b*c*tan(e) - 180*A*a*b^2*c*tan(e) + 18
0*C*a*b^2*c*tan(e) + 60*B*b^3*c*tan(e) - 60*B*a^3*d*tan(e) - 180*A*a^2*b*d*tan(e) + 180*C*a^2*b*d*tan(e) + 180
*B*a*b^2*d*tan(e) + 60*A*b^3*d*tan(e) - 60*C*b^3*d*tan(e) - 90*C*a^2*b*c - 90*B*a*b^2*c - 30*A*b^3*c + 45*C*b^
3*c - 30*C*a^3*d - 90*B*a^2*b*d - 90*A*a*b^2*d + 135*C*a*b^2*d + 45*B*b^3*d)/(f*tan(f*x)^5*tan(e)^5 - 5*f*tan(
f*x)^4*tan(e)^4 + 10*f*tan(f*x)^3*tan(e)^3 - 10*f*tan(f*x)^2*tan(e)^2 + 5*f*tan(f*x)*tan(e) - f)
Mupad [B] (verification not implemented)
Time = 8.88 (sec) , antiderivative size = 477, normalized size of antiderivative = 1.35
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x)) \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right ) \, dx=x\,\left (A\,a^3\,c+A\,b^3\,d-B\,a^3\,d+B\,b^3\,c-C\,a^3\,c-C\,b^3\,d-3\,A\,a\,b^2\,c-3\,A\,a^2\,b\,d-3\,B\,a^2\,b\,c+3\,B\,a\,b^2\,d+3\,C\,a\,b^2\,c+3\,C\,a^2\,b\,d\right )+\frac {{\mathrm {tan}\left (e+f\,x\right )}^4\,\left (\frac {B\,b^3\,d}{4}+\frac {C\,b^3\,c}{4}+\frac {3\,C\,a\,b^2\,d}{4}\right )}{f}+\frac {{\mathrm {tan}\left (e+f\,x\right )}^3\,\left (\frac {A\,b^3\,d}{3}+\frac {B\,b^3\,c}{3}-\frac {C\,b^3\,d}{3}+B\,a\,b^2\,d+C\,a\,b^2\,c+C\,a^2\,b\,d\right )}{f}+\frac {{\mathrm {tan}\left (e+f\,x\right )}^2\,\left (\frac {A\,b^3\,c}{2}-\frac {B\,b^3\,d}{2}+\frac {C\,a^3\,d}{2}-\frac {C\,b^3\,c}{2}+\frac {3\,A\,a\,b^2\,d}{2}+\frac {3\,B\,a\,b^2\,c}{2}+\frac {3\,B\,a^2\,b\,d}{2}+\frac {3\,C\,a^2\,b\,c}{2}-\frac {3\,C\,a\,b^2\,d}{2}\right )}{f}+\frac {\ln \left ({\mathrm {tan}\left (e+f\,x\right )}^2+1\right )\,\left (\frac {A\,a^3\,d}{2}-\frac {A\,b^3\,c}{2}+\frac {B\,a^3\,c}{2}+\frac {B\,b^3\,d}{2}-\frac {C\,a^3\,d}{2}+\frac {C\,b^3\,c}{2}+\frac {3\,A\,a^2\,b\,c}{2}-\frac {3\,A\,a\,b^2\,d}{2}-\frac {3\,B\,a\,b^2\,c}{2}-\frac {3\,B\,a^2\,b\,d}{2}-\frac {3\,C\,a^2\,b\,c}{2}+\frac {3\,C\,a\,b^2\,d}{2}\right )}{f}+\frac {\mathrm {tan}\left (e+f\,x\right )\,\left (B\,a^3\,d-A\,b^3\,d-B\,b^3\,c+C\,a^3\,c+C\,b^3\,d+3\,A\,a\,b^2\,c+3\,A\,a^2\,b\,d+3\,B\,a^2\,b\,c-3\,B\,a\,b^2\,d-3\,C\,a\,b^2\,c-3\,C\,a^2\,b\,d\right )}{f}+\frac {C\,b^3\,d\,{\mathrm {tan}\left (e+f\,x\right )}^5}{5\,f}
\]
[In]
int((a + b*tan(e + f*x))^3*(c + d*tan(e + f*x))*(A + B*tan(e + f*x) + C*tan(e + f*x)^2),x)
[Out]
x*(A*a^3*c + A*b^3*d - B*a^3*d + B*b^3*c - C*a^3*c - C*b^3*d - 3*A*a*b^2*c - 3*A*a^2*b*d - 3*B*a^2*b*c + 3*B*a
*b^2*d + 3*C*a*b^2*c + 3*C*a^2*b*d) + (tan(e + f*x)^4*((B*b^3*d)/4 + (C*b^3*c)/4 + (3*C*a*b^2*d)/4))/f + (tan(
e + f*x)^3*((A*b^3*d)/3 + (B*b^3*c)/3 - (C*b^3*d)/3 + B*a*b^2*d + C*a*b^2*c + C*a^2*b*d))/f + (tan(e + f*x)^2*
((A*b^3*c)/2 - (B*b^3*d)/2 + (C*a^3*d)/2 - (C*b^3*c)/2 + (3*A*a*b^2*d)/2 + (3*B*a*b^2*c)/2 + (3*B*a^2*b*d)/2 +
(3*C*a^2*b*c)/2 - (3*C*a*b^2*d)/2))/f + (log(tan(e + f*x)^2 + 1)*((A*a^3*d)/2 - (A*b^3*c)/2 + (B*a^3*c)/2 + (
B*b^3*d)/2 - (C*a^3*d)/2 + (C*b^3*c)/2 + (3*A*a^2*b*c)/2 - (3*A*a*b^2*d)/2 - (3*B*a*b^2*c)/2 - (3*B*a^2*b*d)/2
- (3*C*a^2*b*c)/2 + (3*C*a*b^2*d)/2))/f + (tan(e + f*x)*(B*a^3*d - A*b^3*d - B*b^3*c + C*a^3*c + C*b^3*d + 3*
A*a*b^2*c + 3*A*a^2*b*d + 3*B*a^2*b*c - 3*B*a*b^2*d - 3*C*a*b^2*c - 3*C*a^2*b*d))/f + (C*b^3*d*tan(e + f*x)^5)
/(5*f)